package com.ktkq.service.admin.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ktkq.dao.admin.AdminMapper;
import com.ktkq.service.admin.AdminService;
import com.ktkq.vo.Admin;

@Service
public class AdminServiceImpl implements AdminService {
	
    @Autowired
	private AdminMapper adminMapper;
	@Override
	public List<Admin> queryList(Admin admin) {
		
		return adminMapper.queryList(admin);
	}

	@Override
	public void insertUser(Admin admin) {
		adminMapper.insertUser(admin);
	}

	@Override
	public void updateUser(Admin admin) {
		adminMapper.updateUser(admin);
	}

	@Override
	public void deleteUser(Admin admin) {
		adminMapper.deleteUser(admin);

	}

	public AdminMapper getAdminMapper() {
		return adminMapper;
	}

	public void setAdminMapper(AdminMapper adminMapper) {
		this.adminMapper = adminMapper;
	}
	

}
